package org.hpm.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @description: 订单表
 * @author: jacklin
 * @date: 2021-12-02
 * @version: V1.0
 */
@Data
@TableName("hpm_orders")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "hpm_orders对象", description = "订单表")
public class HpmOrders implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 用户id
     */
    @Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id")
    private String userId;
    /**
     * 收货人姓名
     */
    @Excel(name = "收货人姓名", width = 15)
    @ApiModelProperty(value = "收货人姓名")
    private String receiverName;
    /**
     * 收货人手机号
     */
    @Excel(name = "收货人手机号", width = 15)
    @ApiModelProperty(value = "收货人手机号")
    private String receiverMobile;
    /**
     * 收货地址
     */
    @Excel(name = "收货地址", width = 15)
    @ApiModelProperty(value = "收货地址")
    private String receiverAddress;
    /**
     * 订单总价格
     */
    @Excel(name = "订单总价格", width = 15)
    @ApiModelProperty(value = "订单总价格")
    private Integer totalAmount;
    /**
     * 实际支付总价格
     */
    @Excel(name = "实际支付总价格", width = 15)
    @ApiModelProperty(value = "实际支付总价格")
    private Integer realPayAmount;
    /**
     * 邮费;默认可以为零，代表包邮
     */
    @Excel(name = "邮费;默认可以为零，代表包邮", width = 15)
    @ApiModelProperty(value = "邮费;默认可以为零，代表包邮")
    private Integer postAmount;
    /**
     * 支付方式
     */
    @Excel(name = "支付方式", width = 15)
    @ApiModelProperty(value = "支付方式")
    private Integer payMethod;
    /**
     * 买家留言
     */
    @Excel(name = "买家留言", width = 15)
    @ApiModelProperty(value = "买家留言")
    private String leftMsg;
    /**
     * 扩展字段
     */
    @Excel(name = "扩展字段", width = 15)
    @ApiModelProperty(value = "扩展字段")
    private String extend;
    /**
     * 买家是否评价;1：已评价，0：未评价
     */
    @Excel(name = "买家是否评价;1：已评价，0：未评价", width = 15)
    @ApiModelProperty(value = "买家是否评价;1：已评价，0：未评价")
    private Integer isComment;
    /**
     * 逻辑删除状态;1: 删除 0:未删除
     */
    @Excel(name = "逻辑删除状态;1: 删除 0:未删除", width = 15)
    @ApiModelProperty(value = "逻辑删除状态;1: 删除 0:未删除")
    private Integer deleted;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String updateBy;
    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
}
